package com.myhome.controller;

import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
@CrossOrigin
public class TestController {
    @GetMapping("/test")
    public String test(HttpServletRequest request) {
        String authorization = request.getHeader("Authorization");
        System.out.println("name"+authorization);
        return "test";
    }
    @GetMapping("/employee/basic/test")
    public String test1(){
        return "hello";
    }
    @GetMapping("/employee/advanced/test")
    public String test2(){
        return "hello";
    }

}
